package com.chinapost.po;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Tyxjl entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TYXJL", schema = "YXJF")
public class Tyxjl implements java.io.Serializable {

	// Fields

	private String cid;
	private Tuser tuserByCcreateuserid;
	private Tdept tdept;
	private Tuser tuserByCmodifyuserid;
	private Tkind tkind;
	private Timestamp cstartdate;
	private Timestamp cenddate;
	private Double cmin;
	private Double cmax;
	private Double cfee;
	private Timestamp ccreatedate;
	private Timestamp cmodifydate;

	// Constructors

	/** default constructor */
	public Tyxjl() {
	}

	/** minimal constructor */
	public Tyxjl(String cid, Double cfee) {
		this.cid = cid;
		this.cfee = cfee;
	}

	/** full constructor */
	public Tyxjl(String cid, Tuser tuserByCcreateuserid, Tdept tdept, Tuser tuserByCmodifyuserid, Tkind tkind, Timestamp cstartdate, Timestamp cenddate, Double cmin, Double cmax, Double cfee, Timestamp ccreatedate, Timestamp cmodifydate) {
		this.cid = cid;
		this.tuserByCcreateuserid = tuserByCcreateuserid;
		this.tdept = tdept;
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
		this.tkind = tkind;
		this.cstartdate = cstartdate;
		this.cenddate = cenddate;
		this.cmin = cmin;
		this.cmax = cmax;
		this.cfee = cfee;
		this.ccreatedate = ccreatedate;
		this.cmodifydate = cmodifydate;
	}

	// Property accessors
	@Id
	@Column(name = "CID", unique = true, nullable = false, length = 36)
	public String getCid() {
		return this.cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CCREATEUSERID")
	public Tuser getTuserByCcreateuserid() {
		return this.tuserByCcreateuserid;
	}

	public void setTuserByCcreateuserid(Tuser tuserByCcreateuserid) {
		this.tuserByCcreateuserid = tuserByCcreateuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CDEPTID")
	public Tdept getTdept() {
		return this.tdept;
	}

	public void setTdept(Tdept tdept) {
		this.tdept = tdept;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CMODIFYUSERID")
	public Tuser getTuserByCmodifyuserid() {
		return this.tuserByCmodifyuserid;
	}

	public void setTuserByCmodifyuserid(Tuser tuserByCmodifyuserid) {
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CKINDID")
	public Tkind getTkind() {
		return this.tkind;
	}

	public void setTkind(Tkind tkind) {
		this.tkind = tkind;
	}

	@Column(name = "CSTARTDATE", length = 11)
	public Timestamp getCstartdate() {
		return this.cstartdate;
	}

	public void setCstartdate(Timestamp cstartdate) {
		this.cstartdate = cstartdate;
	}

	@Column(name = "CENDDATE", length = 11)
	public Timestamp getCenddate() {
		return this.cenddate;
	}

	public void setCenddate(Timestamp cenddate) {
		this.cenddate = cenddate;
	}

	@Column(name = "CMIN", precision = 13)
	public Double getCmin() {
		return this.cmin;
	}

	public void setCmin(Double cmin) {
		this.cmin = cmin;
	}

	@Column(name = "CMAX", precision = 13)
	public Double getCmax() {
		return this.cmax;
	}

	public void setCmax(Double cmax) {
		this.cmax = cmax;
	}

	@Column(name = "CFEE", nullable = false, precision = 6, scale = 1)
	public Double getCfee() {
		return this.cfee;
	}

	public void setCfee(Double cfee) {
		this.cfee = cfee;
	}

	@Column(name = "CCREATEDATE", length = 11)
	public Timestamp getCcreatedate() {
		return this.ccreatedate;
	}

	public void setCcreatedate(Timestamp ccreatedate) {
		this.ccreatedate = ccreatedate;
	}

	@Column(name = "CMODIFYDATE", length = 11)
	public Timestamp getCmodifydate() {
		return this.cmodifydate;
	}

	public void setCmodifydate(Timestamp cmodifydate) {
		this.cmodifydate = cmodifydate;
	}

}